package com.liu.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.io.Serializable;

/**
 * (Reply)实体类
 *
 * @author makejava
 * @since 2023-02-24 19:07:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Reply implements Serializable {
    private static final long serialVersionUID = -34057124513040604L;
    @TableId(type = IdType.AUTO)
    @Alias("ID")
    private Integer id;
    @Alias("医生id")
    private Integer phyId;
    private Physician physician;
    @Alias("回复")
    private String answer;
    @Alias("评论id")
    private Integer queId;
    private Question question;
    @Alias("回复时间")
    @JsonSerialize(using = com.liu.entity.DateTime.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createtime;

}

